import request from '@/utils/request';

// PC端获取事故单完整详情
export async function getPkgAccidentDetail(params) {
  return request('/luggage/pkg/getPkgAccidentDetail', {
    method: 'get',
    params,
  })
}

// 批量修改图片
export async function batchUpdateImg(data) {
  return request('/luggage/lost/img/batchUpdateImg', {
    method: 'post',
    data,
  })
}

// 打印事故单 - 进港少收
export async function getUnderchargePrint(params) {
  return request('/luggage/pkg/undercharge/downloadImg', {
    method: 'get',
    params,
  });
}

// 打印事故单 - 进港破损
export async function arrivalDamagedPrintAccident(params) {
  return request('/luggage/arrivalDamaged/printAccident', {
    method: 'get',
    params,
  });
}

// 打印事故单 - 内物丢失
export async function lossInternalItemsPrintAccident(params) {
  return request('/luggage/lossInternalItems/printAccident', {
    method: 'get',
    params,
  });
}

// 打印领取单 - 多收
export async function overchargePrintClaim(params) {
  return request('/luggage/pkg/overcharge/printClaim', {
    method: 'get',
    params,
  });
}

// 归档打印 - 少收
export async function printAll(params) {
  return request('/luggage/pkg/undercharge/printAll', {
    method: 'get',
    params,
  });
}

// 归档打印 - 内物缺失
export async function lossInternalItemsPrintAll(params) {
  return request('/luggage/lossInternalItems/printAll', {
    method: 'get',
    params,
  });
}

// 归档打印 - 进港破损
export async function arrivalDamagedPrintAll(params) {
  return request('/luggage/arrivalDamaged/printAll', {
    method: 'get',
    params,
  });
}

// 打印事故单关联联系记录
export async function downLoadCommunicate(params) {
  return request('/luggage/pkg/downLoadCommunicate', {
    method: 'get',
    params,
  });
}
